<?php
/* @var $this WinnerController */
/* @var $model Winner */
?>

<h1>Manage Winners</h1>

<div class="search-form">
	<?php $this->renderPartial('_search',array(
		'model'=>$model,
	)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'winner-grid',
	'dataProvider'=>$searchResult,
	'columns'=>array(
		array('name'=>'id','headerHtmlOptions'=>array('width'=>'32px')),
		'customer_name',
		array('name'=>'update_time', 
			'type'=>'date', 
			'headerHtmlOptions'=>array('width'=>'80px'),
			'htmlOptions' => array('class'=>'alr'),
		),
		'referralCount',
		'prize',
		array('name'=>'rank', 
			'type'=>'number', 
			'headerHtmlOptions'=>array('width'=>'50px'),
			'htmlOptions' => array('class'=>'alr'),
		),
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
